<php>
	$this->display(tpl('head',true));
</php> 
<style>
	.layui-table thead tr th{
		text-align: center;
	}
</style>
<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
  	<legend>广告位购买记录</legend>
</fieldset>
<table class="layui-table" cellspacing="0" cellpadding="0" border="0"  lay-filter="demoEvent">
	<thead>
		<tr>
			<th width="40">Id</th>
			<th>广告位名称</th>
			<th width="100">类型</th>
			<th width="150">到期时间</th>
			<th width="150">购买时间</th>
			<th width="65">操作</th>
		</tr>
	</thead>
	<tbody>
		<foreach array="getlist">
		<tr>
			<td align="center">{{$row['id']}}</td>
			<td>{{$row['info']['name']}}</td>
			<td align="center">{{$row['ad_type']}}</td>
			
			<td align="center">
				{{date('Y-m-d H:i:s',$row['endtime'])}}
			</td>
			<td align="center">
				{{date('Y-m-d H:i:s',$row['posttime'])}}
			</td>
			<td align="center">
				<a class="layui-btn layui-btn-sm layui-btn-warm" href="{{user_plugin_url}}index/edit/id/{{$row['id']}}">设置广告</a>
			</td>
		</tr>
		</foreach>
	</tbody>
</table>
<div class="page">
	{{$Get_Page}}
</div>
<php>
	$this->display(tpl('foot',true));
</php>
